package com.haiya.factory.simple.basic;

/**
 * @author qiaoguoqiang
 */
public class SimpleFactory {
    public Product makeProduct(String type) {
        Product product = null;
        if (type.equals("product1")) {
            product = new ConcreteProduct1();
        } else if (type.equals("product2")) {
            product = new ConcreteProduct2();
        }

        return product;
    }
}
